﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace S.Organization.Infrastructure.Migrations
{
    public partial class client : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Client",
                columns: table => new
                {
                    ClientId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    ClientNumber = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
                    ClientName = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
                    ClientType = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
                    PrincipalTel = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
                    InputUnit = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
                    BuildingUser = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
                    Market = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
                    ServiceStaff = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
                    CollectionFile = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
                    UseOftate = table.Column<bool>(type: "bit", nullable: false),
                    PrincipalName = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
                    IDNumber = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
                    IndustryInvolved = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
                    Classification = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
                    AffiliatedUnit = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
                    Salesman = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Client", x => x.ClientId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Client");
        }
    }
}
